/**
 * 
 */

var currentNav = '';

function ajaxWithServer(url, action) {
	var result = {};
	$.ajax({
		type : "POST",
		url : url,
		data : action,
		dataType : "json",
		async:false,
		success : function(data) {
			result.data = data;
			result.result = true;
		},
		error : function() {
			result.result = false;
			console.log("网络连接出错！");
		}
	});
	return result;
};